// M E N U
function initMenu() {
  if (!$('#menu')) return;

//  var menuItem = $('#menu > li');
//  var menu = $('#menu');

  $('#menu').removeClass('nojs');
  
  $('#menu > li').each(function (){
	  
	  $(this).mouseover(function(){
		  this.className = 'hover';
	  });
	  
	  $(this).mouseout(function(){
		  this.className = '';
	  });
	  
	  $(this).focus(function(){
		  this.className = 'hover';
	  });
	  
	  $(this).blur(function(){
		  this.className = '';
	  });
	  /*
	     var overEvent = prepareShowMenu(this);
	      var outEvent = prepareHideMenu(this);

	      this.onmouseover = overEvent;
	      this.onfocus = overEvent;
	      this.onclick = overEvent;

	      this.onmouseout = outEvent;
	      this.onblur = outEvent;
	      */
  });
}

// -------------------------
//Gestion du menu deroulant
function prepareShowMenu(elem) {
return (function() {
 showMenu( elem );
});
}
function prepareHideMenu(elem) {
return (function() {
 hideMenu( elem );
});
}

function showMenu(elem) {
elem.className = 'hover';
}
function hideMenu(elem) {
elem.className = '';
}